<template>
    <div>
        主控台
    </div>
    <button @click="addRoute">addRoute</button>
    <button @click="removeRoute">removeRoute</button>
    <button @click="hasRoute">hasRoute</button>
</template>

<script>

export default {
    methods:{
        addRoute(){
            //
            this.$router.addRoute("login",{
                path:'/abcd',
                component : () => import("@/views/dashboard/monitor.vue"),
                
            });
            this.$router.push("/login/abcd")
        },
        hasRoute(){

        },
        removeRoute(){

        },
    }
}

</script>